package jnpf.database.model.dto;

import jnpf.database.source.DbBase;
import jnpf.database.util.DataSourceUtil;
import lombok.Data;

import java.sql.Connection;

/**
 * 数据连接相关数据传输对象
 *
 * @author JNPF开发平台组
 * @version V3.2.0
 * @copyright 引迈信息技术有限公司
 * @date 2021/10/12
 */
@Data
public class DbConnDTO {

    public DbConnDTO(DbBase dbBase, DataSourceUtil dbSource, Connection conn){
        this.dbBase = dbBase;
        this.dbSource = dbSource;
        this.conn = conn;
    }

    /**
     * 数据库基类
     */
    private DbBase dbBase;

    /**
     * 数据源信息
     */
    private DataSourceUtil dbSource;

    /**
     * 数据连接
     */
    private Connection conn;
}
